package io.polly.common.config;

import io.polly.common.constant.DynamicExecutorConstant;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @author ldz
 * @version V1.0
 * @title: DynamicExecutorProperties
 * @description: TODO(用一句话描述该文件做什么)
 * @date: 2022/3/18 20:55
 */

@Slf4j
@Data
@ConfigurationProperties(prefix = DynamicExecutorConstant.DYNAMIC_EXECUTOR_PROPERTIES_PREFIX)
public class DynamicExecutorProperties {

    private int monitorInterval = 5;
    private boolean enabledCollect = false;
    private List<ThreadPoolProperties> executors;
}
